package se.sisy.Connection;

import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;

public class SshConnection {

	private static JSch jsch = new JSch();

	private static SshConnection instance;

	private ChannelSftp channel;

	private SshConnection() {}
	
	public static SshConnection getInstance() {
		 if (null == instance) {
             instance = new SshConnection();
     }
     return instance;
	}
	
	public JSch getJsch() {
		return jsch;
	}

	public ChannelSftp getChannel() {
		return channel;
	}
	
	public void setChannel(ChannelSftp sftpChannel) {
		this.channel = sftpChannel;
	}
	
	
}
